<?php
/**
 * Reminder Block.
 * 
 * @author Xavier VILAIN
 */
use Hive\Ressource;
use Shama\Task;
use Fox\Generator;

$ressource = $params['ressource'];
$reminder = $ressource->reminder();
$block = new Fox\Html\Block('reminderInfo',Msg(Hive::BUNDLE,Hive::REMIND_ME));
if(!$reminder)
{
	$block->add(new Fox\Html\Button('addnw',
							Generator::display('pTask',
											 Fox\Generator::url('task',
											 				'add',
											 				null,
											 				array('popup' => true,
											 					  'type' => Task::TYPE_STANDARD,
											 					  'reference_class' => Ressource::className(),
											 					  'reference_id' => $ressource->getId()))),
							Msg(Hive::BUNDLE,Hive::TASK_ADD)));
}
else
{
	// Display Reminder detail
}

return $block;
